import { service } from './request';

export function getPersonal(params = {}) {
  return service({
    url: '/personal/getPersonal',
    method: 'get',
    params: params
  });
}

export function getByUsername(params = {}) {
  return service({
    url: '/personal/getByUsername',
    method: 'get',
    params: params
  });
}

export function updateNum(data) {
  return service({
    url: '/personal/updateNum',
    method: 'post',
    data: data
  });
}

export function deleteAll(data) {
  return service({
    url: '/personal/deleteAll',
    method: 'post',
    data: data
  });
}
